package com.xmls.server.service.Impl;

import com.xmls.server.entity.FaultNotice;
import com.xmls.server.entity.Result;
import com.xmls.server.mapper.NoticeMapper;
import com.xmls.server.service.NoticeService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@Slf4j
public class NoticeServiceImpl implements NoticeService {
    @Autowired
    private NoticeMapper noticeMapper;

    @Override
    public Result<List<FaultNotice>> findAll() {
        return noticeMapper.findAll();
    }

    @Override
    public Result<Integer> CountTotal() {
        return noticeMapper.CountTotal();
    }

    @Override
    public int CountCompleted() {
        return noticeMapper.CountCompleted();
    }

    @Override
    public int CountPending() {
        return noticeMapper.CountPending();
    }

    @Override
    public int CountProcessing() {
        return noticeMapper.CountProcessing();
    }

    @Override
    public int CountPendingApproval() {
        return noticeMapper.CountPendingApproval();
    }
}
